.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #0d1117;
  color: #c9d1d9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  overflow: hidden;
}

/* 顶部Header样式 */
.app-header {
  background: #21262d;
  border-bottom: 1px solid #30363d;
  padding: 6px 12px; /* 从12px 20px减少到6px 12px */
  flex-shrink: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 8px; /* 从12px减少到8px */
}

.brand-logo {
  width: 24px; /* 从32px减少到24px */
  height: 24px; /* 从32px减少到24px */
  border-radius: 4px; /* 从6px减少到4px */
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); /* 减少阴影 */
}

.brand-title {
  margin: 0;
  font-size: 16px; /* 从20px减少到16px */
  font-weight: 600;
  color: #c9d1d9;
}

/* 主体内容区域 */
.app-body {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #010409;
  position: relative;
}

/* 底部Footer样式 */
/* Footer现在固定显示，不需要触发区域 */

.app-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #21262d;
  border-top: 1px solid #30363d;
  padding: 2px 8px; /* 进一步减少到2px 8px */
  z-index: 1000;
  height: 20px; /* 固定高度20px */
  display: flex;
  align-items: center;
}

/* Footer现在固定显示，不需要visible动画类 */

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8b949e;
  font-size: 10px; /* 从12px减少到10px */
  width: 100%;
}

.company-name {
  font-weight: 500;
  font-size: 10px; /* 从原来的尺寸减少到10px */
}

.copyright {
  font-size: 9px; /* 版权信息字体更小，减少到9px */
  opacity: 0.8;
}

.error-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(248, 81, 73, 0.15);
  border: 1px solid rgba(248, 81, 73, 0.3);
  border-radius: 6px;
  margin: 0 20px 20px 20px;
  color: #f85149;
  font-size: 14px;
  font-weight: 500;
}

.error-icon {
  font-size: 16px;
}

.error-text {
  flex: 1;
}

.error-close {
  background: none;
  border: none;
  color: #f85149;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.error-close:hover {
  background: rgba(248, 81, 73, 0.2);
}

.download-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(107, 66, 193, 0.15);
  border: 1px solid rgba(107, 66, 193, 0.3);
  border-radius: 6px;
  margin: 0 20px 20px 20px;
  color: #8957e5;
  font-size: 14px;
  font-weight: 500;
}

.download-icon {
  font-size: 16px;
  animation: pulse 1.5s ease-in-out infinite;
}

.download-text {
  flex: 1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .app-header {
    padding: 6px 16px;
  }
  
  .header-brand {
    gap: 8px;
  }
  
  .brand-logo {
    width: 28px;
    height: 28px;
  }
  
  .brand-title {
    font-size: 18px;
  }
  
  .app-body {
    flex-direction: column;
  }
  
  .main-content {
    flex: 1;
    overflow-y: auto;
  }
  
  .error-banner {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .footer-trigger-area {
    height: 15px;
  }
  
  .app-footer {
    padding: 6px 16px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
  
  .company-name {
    font-size: 11px;
  }
  
  .copyright {
    font-size: 10px;
  }
}

/* 全屏模式样式 */
.app-body.fullscreen-mode {
  display: block;
}

.app-body.fullscreen-mode .main-content {
  width: 100%;
  height: 100vh;
  margin: 0;
}

/* 全局样式重置 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #0d1117;
  color: #c9d1d9;
  overflow: hidden;
}

button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

/* 加载页面样式 */
.app-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #0d1117;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loading-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.loading-title {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #c9d1d9;
  letter-spacing: -1px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(139, 148, 158, 0.3);
  border-top: 3px solid #58a6ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  margin: 0;
  font-size: 16px;
  color: #8b949e;
  font-weight: 500;
} 